package com.skyblue.service.impl;

import com.skyblue.dao.HistoryMapper;
import com.skyblue.entity.History;
import com.skyblue.entity.RealTimeView;
import com.skyblue.service.HistoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by toutou on 2018/5/27.
 */
@Service
public class HistoryServiceImpl implements HistoryService {
    @Autowired
    private HistoryMapper historyMapper;
    @Override
    public List<RealTimeView> queryLocation() {
        return historyMapper.queryLocation();
    }

    @Override
    public List<History> queryGroupByTime(History condition) {
        return historyMapper.queryGroupByTime(condition);
    }

    @Override
    public List<History> getImg(int id) {
        return historyMapper.getImg(id);
    }

    @Override
    public List<History> querySomeTime(History history) {
        return historyMapper.querySomeData(history);
    }
}
